/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bugsandcritters;

import java.awt.*;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import java.io.File;

/**
 *
 * @author Robert Gibbons
 */

public class Rock extends GameObject{
    
    private static BufferedImage RockImage;
    
    @Override
    public void Create()
    {
        this.NeedsUpdate = false;
        super.Create();
    }
    
    
    @Override
    public void Draw(Graphics g)
    {
        if(RockImage == null)
        {
            try
            {
                RockImage = ImageIO.read(new File("RockImage.png"));
            }
            catch(Exception e){}
        }
        else
            g.drawImage(RockImage, (int)X- RockImage.getWidth()/2, 
                    (int)Y- RockImage.getHeight()/2, null);
        
    }
}
